// npm i @types/node
const fs = require("fs");

age = 123;
// a = "123"//error
console.log(age);

id = 123;
id = "456";
console.log(id);

let className: NumberOrString = 2113;
className = "2113";
console.log(className);

let getMyname: NameGetter = (id) => `getMyname:${id}`;
console.log(getMyname("john smith"));

let chicken: Animal = {
  name: "一只鸡",
  legs: 2,
};
console.log(chicken);
